﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Leave_Request_Print.aspx.cs"
    Inherits="Trig_AMJ_HR_Forms.Layouts.Trig_AMJ_HR_Forms.Leave_Request_Print" DynamicMasterPageFile="~masterurl/default.master" %>

<%@ Register TagPrefix="trig" TagName="userInfo" Src="~/_controltemplates/Trig_AMJ_IT_Forms/UserProfileInfo.ascx" %>
<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <link rel="Stylesheet" type="text/css" href="/_layouts/1033/STYLES/Themable/FORMS.CSS" />
    <link rel="Stylesheet" type="text/css" href="/_layouts/1033/STYLES/Print.css" />
    <script language="javascript" src="/_layouts/Scripts/validation.js" type="text/javascript"></script>
    <style type="text/css">
        #s4-leftpanel
        {
            display: none;
        }
        .s4-ca
        {
            margin-left: 0px;
        }
        .ms-validations
        {
            color: Red;
        }
        .style2
        {
            width: 373px;
        }
        .style3
        {
            width: 366px;
        }
        body, td, th
        {
            font-size: 8pt;
            font-family: Verdana, Arial, sans-serif;
        }
    </style>
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <asp:Panel ID="pnlFullForm" runat="server" CssClass="pnlWhole">
        <table cellpadding="0" cellspacing="0" width="950px" class="tblWhole">
            <tr>
                <td colspan="4" class="tdHeadingTextCenterAlign">
                    Leave Request Form
                </td>
            </tr>
            <tr>
                <td class="tdCellLeft" colspan="1">
                    Reference No :
                </td>
                <td width="500px" colspan="2" class="tdCell">
                    <asp:Label ID="lblLevReqNo" runat="server" Text="Reference number will be generated upon save"
                        Font-Bold="True" Font-Size="XX-Small" CssClass="ms-long ms-spellcheck-true" ForeColor="black"></asp:Label>
                </td>
                <td align="right" rowspan="2" class="UserInfo-Sec-td">
                    <trig:userInfo runat="server" ID="userInfo" Visible="true" />
                </td>
            </tr>
            <tr>
                <td class="tdCellLeft" colspan="1">
                    Date of filling :
                </td>
                <td width="500px" class="tdCell" colspan="2">
                    <asp:Label runat="server" ID="dtpDate" Text="Sick"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="4" class="tdHeadingTextLeftAlign">
                    Leave Information
                </td>
            </tr>
            <tr>
                <td colspan="4" class="tdCells">
                    <asp:Panel ID="pnlSec" runat="server" Visible="false">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td rowspan="4" colspan="1" width="300x" valign="top" style="padding: 6px">
                                    <asp:RadioButtonList ID="rdBtn" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                        <asp:ListItem Text="Logged in User" Value="0" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text="On Behalf of" Value="1"></asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                                <td colspan="3">
                                    Leave Type :
                                </td>
                                <td colspan="3">
                                    <asp:RadioButtonList runat="server" ID="rdBtnLeaveType" RepeatDirection="Horizontal">
                                        <asp:ListItem Text="Annual" Value="0" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text="Emergency" Value="1"></asp:ListItem>
                                        <asp:ListItem Text="Cancellation" Value="2"></asp:ListItem>
                                        <asp:ListItem Text="Others" Value="3"></asp:ListItem>
                                    </asp:RadioButtonList>
                                    <div id="divLeaveOth" runat="server" style="padding-left: 22px" visible="false">
                                        <asp:Label runat="server" ID="txtLeaveOthers" Width="304px" align="right"></asp:Label>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    Eligible for vacation :
                                </td>
                                <td colspan="3">
                                    <asp:RadioButtonList runat="server" ID="rdBtnEligible" RepeatDirection="Horizontal">
                                        <asp:ListItem Text="Yes" Value="0" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text="No" Value="1"></asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr>
                                <td width="250px" colspan="3">
                                    Airticket borne by employee :
                                </td>
                                <td colspan="3">
                                    <asp:RadioButtonList runat="server" ID="rdBtnAirTkt" RepeatDirection="Horizontal">
                                        <asp:ListItem Text="Yes" Value="0" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text="No" Value="1"></asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td class="tdCellLeft" colspan="2">
                    <asp:Label runat="server" ID="lblOnBehalf" Text="Onbehalf"></asp:Label>
                </td>
                <td class="tdCell" width="200px">
                    Leave Type :
                </td>
                <td class="tdCellRight">
                    <asp:Label runat="server" ID="lblLeaveType" Width="150px" Text="Emergency"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tdCellLeft">
                    Eligible for vacation :
                </td>
                <td class="tdCell">
                    <asp:Label runat="server" ID="lblEligible"></asp:Label>
                </td>
                <td class="tdCell" width="275px">
                    Airticket borne by employee :
                </td>
                <td class="tdCellRight">
                    <asp:Label runat="server" ID="lblAirtkt"></asp:Label>
                </td>
            </tr>
            <asp:UpdatePanel runat="server" ID="uptReqEmp">
                <ContentTemplate>
                    <asp:Panel ID="pnlReqEmpInf" runat="server" Visible="false">
                        <tr>
                            <td class="tdHeadingTextLeftAlign" colspan="4">
                                Requested Employee Information
                            </td>
                        </tr>
                        <tr>
                            <td class="tdCellLeft">
                                Name :
                            </td>
                            <td class="tdCell">
                                <asp:Label ID="txtReqUser" runat="server" Width="250px"></asp:Label>
                            </td>
                            <td class="tdCell">
                                Employee ID :
                            </td>
                            <td class="tdCellRight">
                                <asp:Label ID="txtReqEmpId" runat="server" Width="250px"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdCellLeft">
                                Division :
                            </td>
                            <td class="tdCell">
                                <asp:Label ID="txtReqDivision" runat="server" Width="250px"></asp:Label>
                            </td>
                            <td class="tdCell">
                                Designation :
                            </td>
                            <td class="tdCellRight">
                                <asp:Label ID="txtReqDesignation" runat="server" Width="250px"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdCellLeft">
                                Mobile Number :
                            </td>
                            <td class="tdCell">
                                <asp:Label ID="txtReqMobileNo" runat="server" Width="250px"></asp:Label>
                            </td>
                            <td>
                            </td>
                            <td class="tdCellRight">
                            </td>
                        </tr>
                    </asp:Panel>
                </ContentTemplate>
                <Triggers>
                    <asp:PostBackTrigger ControlID="rdBtn" />
                </Triggers>
            </asp:UpdatePanel>
            <tr>
                <td class="tdHeadingTextLeftAlign" colspan="4">
                    Employment
                </td>
            </tr>
            <tr>
                <td class="tdCellLeft" width="160px">
                    Date of Employment :
                </td>
                <td class="tdCell">
                    <asp:Label ID="txtDOJ" runat="server" Width="250px"></asp:Label>
                </td>
                <td class="tdCell" width="160px">
                    No.of years employed :
                </td>
                <td class="tdCellRight">
                    <asp:Label ID="txtExpYear" runat="server" Width="125px"></asp:Label><span> yy:mm:wk:days</span>
                </td>
            </tr>
            <tr>
                <td class="tdCellLeft">
                    Passport Number :
                </td>
                <td class="tdCell">
                    <asp:Label ID="txtPassNo" runat="server" Width="250px"></asp:Label>
                </td>
                <td class="tdCell">
                    Passport Expiry :
                </td>
                <td class="tdCellRight">
                    <asp:Label ID="txtPassExpire" runat="server" Width="250px"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tdCellLeft">
                    Qatar ID Number :
                </td>
                <td class="tdCell">
                    <asp:Label ID="txtQatariID" runat="server" Width="250px"></asp:Label>
                </td>
                <td class="tdCell">
                    Qatar ID Expiry :
                </td>
                <td class="tdCellRight">
                    <asp:Label ID="txtQatarIDExpire" runat="server" Width="250px"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tdCellLeft">
                    Nationality :
                </td>
                <td class="tdCell">
                    <asp:Label ID="txtNationality" runat="server" Width="250px"></asp:Label>
                </td>
                <td>
                </td>
                <td class="tdCellRight">
                </td>
            </tr>
            <tr>
                <td class="tdHeadingTextLeftAlign" colspan="4">
                    Vacation Details
                </td>
            </tr>
            <tr>
                <td class="tdCellLeft">
                    Travel Date :
                </td>
                <td class="tdCell">
                    <asp:Label ID="dtTravelDt" runat="server" Width="250px"></asp:Label>
                </td>
                <td class="tdCell">
                    Return Date:
                </td>
                <td class="tdCellRight">
                    <asp:Label ID="dtReturnDt" runat="server" Width="250px"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tdCellLeft">
                    No. of days :
                </td>
                <td class="tdCell">
                    <asp:Label ID="txtLeaveDays" runat="server" Width="250px" EnableViewState="true"></asp:Label>
                </td>
                <td class="tdCell" id="tdWodlbl" runat="server">
                    Work Endorsed to :
                </td>
                <td class="tdCellRight" id="tdWodText" runat="server">
                    <asp:Label ID="dtWorkEOD" runat="server" Width="250px"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tdHeadingTextLeftAlign" colspan="4">
                    Vacation History
                </td>
            </tr>
            <tr runat="server" id="trVacationDetails" visible="false">
                <td colspan="4"  style="border-right-color: #121e66; border-left-color: #121e66; border-right-width: 1px; border-left-width: 1px; border-right-style: inset; border-left-style: inset;" align="center">
                    <asp:Label runat="server" ID="lblVacationDetails" Text="" Font-Size="X-Small" ForeColor="Black"></asp:Label>
                </td>
            </tr>
            <asp:Panel ID="pnlgvVacations" runat="server" align="center">
                <tr>
                    <td colspan="4" align="center" style="border-right-color: #121e66; border-left-color: #121e66;
                        border-bottom-color: #121e66; border-right-width: 1px; border-bottom-width: 1px;
                        border-left-width: 1px; border-right-style: inset; border-left-style: inset;
                        border-bottom-style: inset; padding: 5px;">
                        <asp:GridView ID="gvVacationDetails" runat="server" AutoGenerateColumns="false" RowStyle-Height="20px" >
                            <Columns>
                                <asp:TemplateField HeaderText="Travel Date">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="txtLeaveDt" Text='<%# Eval("RequestDate", "{0:dd/MM/yyyy}") %>'
                                            Width="200px" ReadOnly="true"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Leave Type">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="txtLeaveType" Text='<%# Bind("LeaveType") %>' Width="200px"
                                            ReadOnly="true"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Resumption Date">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="txtResumptionDt" Text='<%# Eval("ResumptionDate", "{0:dd/MM/yyyy}") %>'
                                            Width="200px" ReadOnly="true"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Ticket Paid By">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="txtTicketPaidBy" Text='<%# Bind("TicketPaidBy") %>'
                                            Width="200px" ReadOnly="true"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
            </asp:Panel>
            <tr>
                <td colspan="4" align="center" style="border-right-color: #121e66; border-left-color: #121e66;
                    border-bottom-color: #121e66; border-right-width: 1px; border-bottom-width: 1px;
                    border-left-width: 1px; border-right-style: inset; border-left-style: inset;
                    border-bottom-style: inset; padding: 5px;">
                    <div>
                        <asp:GridView runat="server" ID="gvApprovers" AutoGenerateColumns="true" Width="100%" GridLines="None" CellPadding="5" CellSpacing="5" HeaderStyle-Font-Bold="true" RowStyle-Font-Bold="true">
                        </asp:GridView>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="4" class="tblButtons" style="padding-top: 5px;">
                    <input type="button" value="Print" id="btnPrint" title="Print" onclick="window.print()"
                    class="ms-ButtonHeightWidth" />
                    <input id="btnCancel" class="ms-ButtonHeightWidth" type="button" value="Close" accesskey="C"
                        onclick="window.parent.history.back()" runat="server" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="pnlAccessDenied" runat="server" Visible="false">
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td style="text-align: center;">
                    <asp:Label ID="lblAccessDeniedMsg" runat="server" Text="" Font-Size="Medium" ForeColor="Red"
                        Font-Bold="True" Visible="false"></asp:Label>
                    <asp:Label ID="lblUserNotvailable" runat="server" Text="" Font-Size="Medium" ForeColor="Red"
                        Font-Bold="True" Visible="false"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="text-align: center; padding-top: 10px;">
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/_layouts/1033/IMAGES/IRForm/AccessDeniedImage.png" />
                </td>
            </tr>
            <tr>
                <td style="text-align: center; padding-top: 10px">
                    <input id="butonclose" class="ms-ButtonHeightWidth" type="button" onclick="window.parent.history.back()"
                        value="Close" accesskey="C" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    Leave Request Form
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    Leave Request Form
</asp:Content>
